package com.xmy.function;

import java.util.function.Function;

public class Demo01 {
    public static void main(String[] args) {
//        Function function = new Function<String,String>() {
//            @Override
//            public String apply(String s) {
//                return "返回"+s;
//            }
//        };

        Function function = (str)-> "返回"+str;
        System.out.println(function.apply("asd"));
    }
}
